import request from '../utils/axios';
import qs from "qs"

//资源数据
export const resourceData = query => {
    return request({
        url: '/resource',
        method: 'get',
    });
};

export function exitResource(param) {
    return request({
        url: '/resource/update?' + qs.stringify(param),
        method: 'put',
    })
}

export const treeResourceRole = query => {
    return request({
        url: '/resource/treeResourceData',
        method: 'get',
    });
};


